package com.xiaobias.itheima.serialize;

import java.io.Serializable;

public class Book implements Serializable {
    private String id;
    private String name;
    private String title;
    private String tag;
    private String content;

    public Book(String id, String name, String title, String tag, String content) {
        this.id = id;
        this.name = name;
        this.title = title;
        this.tag = tag;
        this.content = content;
    }

    public String getId() {
        return id;
    }

    public Book setId(String id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Book setName(String name) {
        this.name = name;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public Book setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getTag() {
        return tag;
    }

    public Book setTag(String tag) {
        this.tag = tag;
        return this;
    }

    public String getContent() {
        return content;
    }

    public Book setContent(String content) {
        this.content = content;
        return this;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                ", tag='" + tag + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
